#[test]
fn test_array() {
    let a: [i32; 100] = [0; 100];

    let a1 = &a[1..10];
    println!("{:?}", a1);
}

#[test]
fn test_vec() {
    let mut vector = Vec::new();

    if vector.len() == 0 {
        eprintln!("vector is empty");
        std::process::exit(-1);
    }

    for i in 0..10 {
        vector.push(i);
    }

    for i in vector.iter() {
        println!("vector[{}]", i);
    }

    for v in &vector {
        println!("vector[{}]: {}", v, *v);
    }
    // 宏macro
    let vec4: Vec<u32> = vec![1, 2, 3, 4];
}

#[test]
fn test_option() {
    let mut option = Option::Some(10);
}
